package cn.xs.user.service.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.xs.core.service.impl.BaseServiceImpl;
import cn.xs.user.dao.AdminDao;
import cn.xs.user.entity.Admin;
import cn.xs.user.service.AdminService;

@Service("adminService")
public class AdminServiceImpl extends BaseServiceImpl<Admin> implements
		AdminService {

	private AdminDao adminDao;
	@Resource
	public void setAdminDao(AdminDao adminDao) {
		super.setBaseDao(adminDao);
		this.adminDao = adminDao;
	}
	
	
	public Admin login(String account, String password) {
		return adminDao.findAdminByAccAndPwd(account,password);
	}

}
